<?php  
import('miho.event.Event');

/**
* 
*/
class ActionControllerEvent extends Event
{
  const PRE_EXECUTE = 'actionControllerPreExecute';
  const POST_EXECUTE = 'actionControllerPostExecute';
  
  protected $_controller;
  public function getController(){
    return $this->_controller;
  }
  
  protected $_actionName;
  public function getActionName(){
    return $this->_actionName;
  }
  
  protected $_executeResult;
  public function getExecuteResult(){
    return $this->_executeResult;
  }
  
  public function __construct($type,$controller,$actionName,$options=array())
  {
   parent::__construct($type);
   $this->_controller = $controller;
   $this->_actionName = $actionName;
   
   foreach($options as $key => $option) {
     switch ($key) {
       case 'executeResult':
         $this->_executeResult = $option;
         break;
       
       default:
         break;
     }
   }
  }
  
  public static function createController($controller){
    
  }
}


?>